module lang.d.sts.expressions.dassertexpression;

import lang.d.sts.expressions.dexpression;
import lang.d.visitors.dvisitor;

class DAssertExpression: DExpression {
    private DExpression myFirstExpression;
    private DExpression mySecondExpression;

    public this(DExpression firstExpression, DExpression secondExpression = null) {
        myFirstExpression = firstExpression;
        firstExpression.setParent(this);
        mySecondExpression = secondExpression;
        if (secondExpression !is null) {
            secondExpression.setParent(this);
        }
    }

    public DExpression getFirstExpression() {
        return myFirstExpression;
    }

    public DExpression getSecondExpression() {
        return mySecondExpression;
    }

    override public void accept(DVisitor visitor) {
        visitor.visitAssertExpression(this);
    }
}


